package com.yzj.Bean;

import java.math.BigDecimal;

public class Cart {
    //商品名称 商品数量 商品单价  商品总金额
    //商品 id  设为外键 参考
    String user_id; //是谁买了 蛋糕
    Integer c_id;
    String c_name;//商品名称
    Integer c_count;
    Integer total_count;//商品总数量

    BigDecimal c_price;  //商品单价

    BigDecimal single_price; //item 总价

    BigDecimal total_price; //商品总价

    String c_img;//图片路径

    public Cart() {
    }

    public Cart(String user_id, Integer c_id, String c_name, Integer c_count, Integer total_count, BigDecimal c_price, BigDecimal single_price, BigDecimal total_price, String c_img) {
        this.user_id = user_id;
        this.c_id = c_id;
        this.c_name = c_name;
        this.c_count = c_count;
        this.total_count = total_count;
        this.c_price = c_price;
        this.single_price = single_price;
        this.total_price = total_price;
        this.c_img = c_img;
    }


    public String getUser_id() {
        return user_id;
    }

    public void setUser_id(String user_id) {
        this.user_id = user_id;
    }

    public Integer getC_id() {
        return c_id;
    }

    public void setC_id(Integer c_id) {
        this.c_id = c_id;
    }

    public String getC_name() {
        return c_name;
    }

    public void setC_name(String c_name) {
        this.c_name = c_name;
    }

    public Integer getC_count() {
        return c_count;
    }

    public void setC_count(Integer c_count) {
        this.c_count = c_count;
    }

    public Integer getTotal_count() {
        return total_count;
    }

    public void setTotal_count(Integer total_count) {
        this.total_count = total_count;
    }

    public BigDecimal getC_price() {
        return c_price;
    }

    public void setC_price(BigDecimal c_price) {
        this.c_price = c_price;
    }

    public BigDecimal getSingle_price() {
        return single_price;
    }

    public void setSingle_price(BigDecimal single_price) {
        this.single_price = single_price;
    }

    public BigDecimal getTotal_price() {
        return total_price;
    }

    public void setTotal_price(BigDecimal total_price) {
        this.total_price = total_price;
    }

    public String getC_img() {
        return c_img;
    }

    public void setC_img(String c_img) {
        this.c_img = c_img;
    }

    @Override
    public String toString() {
        return "Cart{" +
                "user_id='" + user_id + '\'' +
                ", c_id=" + c_id +
                ", c_name='" + c_name + '\'' +
                ", c_count=" + c_count +
                ", total_count=" + total_count +
                ", c_price=" + c_price +
                ", single_price=" + single_price +
                ", total_price=" + total_price +
                ", c_img='" + c_img + '\'' +
                '}';
    }
}
